@import '~@alife/aisc-core/purple/scss/index.scss';
@import '~@alife/aone-core/variables/index';
.changes-tree,
.commit-new-change-tree {
  margin-left: -13px;
  font-size: 12px;
  &-item {
    margin-left: 10px;
    word-break: break-all;
    &-folder {
      color: $color-text1-2;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      align-items: center;
      display: block;
      padding: 2px 0 1px;
      cursor: pointer;
      &-toggle {
        font-size: 14px !important;
        color: $color-n2-3;
        line-height: 14px !important;
        margin-right: 3px;
        margin-left: 3px;
        &.fa-caret-down {
          vertical-align: text-bottom;
        }
      }
      &-children {
        .changes-tree-item-file {
          margin-left: 0px;
          > a {
            padding-left: 14px;
          }
        }
        .changes-tree-item-folder {
          margin-left: 0px;
        }
      }
    }
    &-file {
      display: flex;
      align-items: center;
      font-weight: bold;
      margin-left: 14px;
      line-height: 24px;
      &-name {
        align-items: center;
        flex: auto;
        display: inline-block;
        &.active,
        &:hover {
          // color: $color-link-4 !important;
          // color: $color-text1-4 !important;
          color: $color-link-4 !important;
          font-weight: bolder;
          position: relative;
          &::before {
            content: '';
            width: 2px;
            height: 16px;
            background: $color-link-4;
            position: absolute;
            top: 50%;
            margin-top: -8px;
            left: -5px;
          }
        }
        .file-icon-add {
          color: $primary-success;
        }
        .file-icon-modify {
          color: $primary-warning;
        }
        .file-icon-delete {
          color: $primary-danger;
        }
      }
    }
    &-right {
      flex: none;
      line-height: 24px;
      position: relative;
      top: 2px;
      .mark-read-btn-read {
        color: $color-f3-1;
        position: relative;
        top: -1px;
        left: 1px;
        cursor: pointer;
      }
      .mark-read-btn-unread {
        color: $color-n1-7;
        position: relative;
        top: -1px;
        left: 1px;
        cursor: pointer;
      }
    }
    &-right-item {
      margin-left: 10px;
      &.add-lines {
        color: $color-success;
        max-width: 60px;
      }
      &.del-lines {
        color: $color-danger;
        max-width: 60px;
      }
      &.comments-cnt {
        color: $color-text1-1;
        .fa {
          margin-right: 2px;
        }
      }
    }
    &-icon {
      margin-right: 4px;
    }
  }

  .#{$teamix-prefix}tree-node {
    position: relative;
  }
}

.changes-tree {
  span.#{$teamix-prefix}tree-switcher {
    position: relative;
    width: 24px !important;
    height: 28px !important;
    line-height: 28px !important;
    text-align: center;
  }
}

.commit-new-change-tree {
  margin-left: 0px;
  changes-treeitem {
    margin-left: 0px;
  }
  span.#{$teamix-prefix}tree-switcher {
    position: relative;
    width: 14px !important;
    height: 20px !important;
    line-height: 22px !important;
    text-align: center;
  }
  .yx-tree.yx-node-indent .yx-tree-node {
    margin-left: 0;
    padding-left: 12px;
  }
  .yx-tree-node {
    .yx-tree-node-inner {
      display: flex;
      align-items: center;
      .yx-noop-noline {
        display: none;
      }
      .yx-tree-node-label-wrapper {
        overflow: hidden;
        margin: 0;
        .yx-tree-node-label {
          overflow: hidden;
          text-overflow: ellipsis;
          padding: 0;
        }
      }
    }
  }
  .file-icon-add {
    color: $primary-success;
  }
  .file-icon-modify {
    color: $primary-warning;
  }
  .file-icon-delete {
    color: $primary-danger;
  }
}
